<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hello Trae</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #333;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            transition: background 0.5s ease;
        }
        
        .container {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            padding: 40px;
            text-align: center;
            max-width: 500px;
            width: 100%;
            transform: translateY(20px);
            opacity: 0;
            animation: fadeInUp 0.8s ease forwards;
        }
        
        @keyframes fadeInUp {
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        
        h1 {
            font-size: 3rem;
            margin-bottom: 20px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            position: relative;
            display: inline-block;
        }
        
        h1::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            border-radius: 2px;
            opacity: 0;
            animation: slideIn 0.5s ease 0.5s forwards;
        }
        
        @keyframes slideIn {
            to {
                opacity: 1;
                width: 120px;
            }
        }
        
        p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            color: #666;
            line-height: 1.6;
            animation: fadeIn 1s ease 1s forwards;
            opacity: 0;
        }
        
        @keyframes fadeIn {
            to {
                opacity: 1;
            }
        }
        
        .btn {
            display: inline-block;
            padding: 12px 30px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
            animation: fadeIn 1s ease 1.3s forwards;
            opacity: 0;
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        }
        
        .btn:active {
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(102, 126, 234, 0.5);
        }
        
        .animation-circle {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            pointer-events: none;
            z-index: -1;
        }
        
        footer {
            margin-top: 40px;
            color: white;
            font-size: 0.9rem;
            opacity: 0.8;
            animation: fadeIn 1s ease 1.5s forwards;
            opacity: 0;
        }
        
        @media (max-width: 768px) {
            .container {
                padding: 30px 20px;
            }
            
            h1 {
                font-size: 2.5rem;
            }
            
            p {
                font-size: 1.1rem;
            }
        }
        
        @media (max-width: 480px) {
            body {
                padding: 15px;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            p {
                font-size: 1rem;
            }
            
            .btn {
                padding: 10px 25px;
                width: 100%;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Hello Trae!</h1>
        <p>欢迎使用 Trae AI 编辑器，这是一个现代化的开发环境，让编码体验更加流畅和高效。</p>
        <button class="btn" id="interactBtn">开始探索</button>
    </div>
    
    <footer>
        <p>© 2023 Trae AI - 让编码更智能</p>
    </footer>
    
    <script>
        // 创建动态背景圆圈
        function createBackgroundCircles() {
            const colors = ['rgba(255, 255, 255, 0.05)', 'rgba(255, 255, 255, 0.08)', 'rgba(255, 255, 255, 0.03)'];
            
            for (let i = 0; i < 10; i++) {
                const circle = document.createElement('div');
                circle.classList.add('animation-circle');
                
                const size = Math.random() * 300 + 50;
                circle.style.width = `${size}px`;
                circle.style.height = `${size}px`;
                circle.style.left = `${Math.random() * 100}%`;
                circle.style.top = `${Math.random() * 100}%`;
                circle.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
                
                const duration = Math.random() * 30 + 20;
                const delay = Math.random() * 10;
                
                circle.style.animation = `float ${duration}s ease-in-out ${delay}s infinite`;
                document.body.appendChild(circle);
            }
        }
        
        // 添加浮动动画样式
        const style = document.createElement('style');
        style.textContent = `
            @keyframes float {
                0%, 100% {
                    transform: translateY(0) translateX(0);
                }
                25% {
                    transform: translateY(-20px) translateX(10px);
                }
                50% {
                    transform: translateY(0) translateX(20px);
                }
                75% {
                    transform: translateY(20px) translateX(10px);
                }
            }
        `;
        document.head.appendChild(style);
        
        // 页面加载完成后执行
        document.addEventListener('DOMContentLoaded', () => {
            createBackgroundCircles();
            
            // 按钮交互效果
            const btn = document.getElementById('interactBtn');
            btn.addEventListener('click', () => {
                // 更改按钮文本和样式
                btn.textContent = '正在探索...';
                btn.style.backgroundColor = '#4CAF50';
                btn.style.transform = 'scale(0.95)';
                
                // 模拟加载效果
                setTimeout(() => {
                    // 创建新的文本元素并添加动画
                    const message = document.createElement('p');
                    message.textContent = 'Trae AI 正在为您准备最佳开发体验！';
                    message.style.color = '#4CAF50';
                    message.style.fontWeight = '600';
                    message.style.marginTop = '20px';
                    message.style.opacity = '0';
                    message.style.transform = 'translateY(10px)';
                    
                    // 添加到容器中
                    const container = document.querySelector('.container');
                    container.appendChild(message);
                    
                    // 触发动画
                    setTimeout(() => {
                        message.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
                        message.style.opacity = '1';
                        message.style.transform = 'translateY(0)';
                    }, 10);
                    
                    // 恢复按钮状态
                    setTimeout(() => {
                        btn.textContent = '开始探索';
                        btn.style = '';
                    }, 1500);
                }, 1000);
            });
            
            // 背景随机变化效果
            let hue = 260;
            setInterval(() => {
                hue = (hue + 0.5) % 360;
                document.body.style.background = `linear-gradient(135deg, hsl(${hue}, 70%, 60%), hsl(${(hue + 40) % 360}, 70%, 60%))`;
            }, 5000);
        });
    </script>
</body>
</html>